package file;

import java.io.File;

public class Test1 {
    public static void main(String[] args) {
        for (int i = 0; i <= 100; i++) {
            File file = new File("test" + i + ".txt");
            if (file.exists()) {
                System.out.println("该目录已存在");
            } else {
                file.mkdirs();
                System.out.println("目录已创建");
            }

        }

    }
}